import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)

import moment from 'moment'

Vue.filter('dateFormat',function(dataStr,pattern="YYYY-MM-DD HH:mm:ss") {
    return moment(dataStr).format(pattern)
})

import VueResqurce from 'vue-resource'
Vue.use(VueResqurce)
//设置请求根路径
//Vue.http.options.root = '/root';
//全局设置 post 时候表单数据格式组织形式  application/x-www-form-urlencoded
//Vue.http.options.emulateJSON = true;


import './lib/mui/css/mui.min.css'
import './lib/mui/css/icons-extra.css'

//导入Mint-UI中的组件
/*import { Header,Swipe, SwipeItem,Button ,Lazyload} from 'mint-ui';
Vue.component(Swipe.name, Swipe);
Vue.component(Header.name, Header);
Vue.component(SwipeItem.name, SwipeItem);
Vue.component(Button.name, Button);


//图片懒加载
Vue.use(Lazyload);*/
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
Vue.use(MintUI)


/*一个Vue集成PhotoSwipe图片预览插件*/
import VuePreview from 'vue-preview'
Vue.use(VuePreview)
/*Vue.use(VuePreview, {
    mainClass: 'pswp--minimal--dark',
    barsSize: {top: 0, bottom: 0},
    captionEl: false,
    fullscreenEl: false,
    shareEl: false,
    bgOpacity: 0.85,
    tapToClose: true,
    tapToToggleControls: false
})*/



import router from './router'




import app from './App.vue'


var vm = new Vue({
    el:'#app',
    render:c => c(app),
    router
});











